package cn.hs.mapper;


import cn.hs.entity.Question;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
//@Repository 注解在 Spring 框架中用来标记数据访问层的类
public interface QuestionMapper {
    //增删改查
    int insert(Question question);
    //删除
    int delete(Integer id);
    //修改
    int update(Question question);
    //查询所有
    List<Question> select(Question question);
    //根据id查询
    Question selectId(Integer id);
}
